class Loader {
  doload() {
    const url = `./fileNames.json?v=318`
    const opt = {
      method: 'GET'
    }
    fetchJson(url, opt).then(data => {
      console.log(data)
      var imgWrap = []
      function preloadImg(arr) {
        for (var i = 0; i < arr.length; i++) {
          imgWrap[i] = new Image()
          imgWrap[i].src = arr[i]
        }
      }
      preloadImg(data.fileNameList)
    })
  }
}

export default Loader